Import("utils.js")
if (!isBlueMode()) {
    require("Bear_plugin.js")
    if (!OTG_init()) {
        log('OTG初始化未完成')
        stopAll()
    }
}
Import("ggUtils.js")

Import("B抖音极速版.js")
// SystemPrint.log('初始化-开始')


var currentAppPackName = ''

var threadZB = new thread();
function startZB_thread(onInit, onStep) {
    threadZB.runJsCode(() => {
        onInit()

        whilestep((steptimes) => {
            onStep(steptimes)
        }, (60) * 60, 5)
    }, "直播线程")
}

startZB_thread(
    () => {
        

        go看直播挂机()
    }, (steptimes) => {
        if (steptimes % 12 == 0) {
            agentOrHidClick(ocrText('点击进入', '直播间'))
        }
    }
)

sleep.second(60 * 60)
if (threadZB && threadZB.isAlive()) {
    threadZB.stop()
    stopAllApp()
}



Import("AAA任务中心.js")

